<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'downloadFail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<script type="text/javascript">
		function countSkip(sec){
			document.getElementById("skip").innerHTML = sec;
			if( sec-- > 0 )
				setTimeout( "countSkip("+sec+")" , 1000 );
			else
				window.location.href=
					"resources.jsp?resType=<%=request.getParameter("resType")%>";
		}
	</script>
	
  </head>
  
  <body>
	<div id = content style="padding:2%;">  
  	<a href="javascript:countSkip(0,'true')" style="color:#FF0000; cursor:pointer; text-decoration:underline;">
		<p>下载失败，该文件已不存在~~</p>
		页面<span id="skip" style="margin:0; background-image:none;">3</span>秒后自动跳转...<br/>
		<br/>如果未自动跳转，请点击此处手动跳转
 	</a>
 	<script type="text/javascript">countSkip(3,"true");</script>
 	</div>
  
  </body>
</html>
